import { defAxios as request } from '@/utils/http'

/**
 * 查询机场直播轨迹数据
 * @returns
 */
export const getFlightData = id => request({
  url: `/inspection/findFlightData/${id}`,
  method: 'GET'
})

/**
 * 根据巡检id查询最新一条遥测数据
 * @returns
 */
export const getTelemetryData = params => request({
  url: `inspection/getFlightDataByInspectionId?inspectionId=${params}`,
  method: 'GET'
})

